package route

import (
	"github.com/gin-gonic/gin"
	"video/handel"
	"video/midware"
)

func Route(c *gin.Engine) {
	c.POST("/login", handel.Login)
	group := c.Group("/api", midware.JwtParse())
	{
		group.POST("/videoAdd", handel.VideoAdd)
	}
	c.POST("/videoList", handel.VideoList)
	c.POST("/videoLiuLan", handel.VideoLiuLan)
}
